/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package org.opensource.jdom.taggen.html.tag;

import org.opensource.jdom.taggen.Tag;

/**
 * Defines the base location for links on a page.
 * Relative links within a document (such as
 * &lt;a href="someplace.html"... or &lt;img src="someimage.jpg"...)
 * will become relative to the URI specified in the base tag.
 * The base tag must go inside the head element.
 *
 * 	<h2>Example</h2> <pre><code class="html">
 * &lt;head&gt;
 * &lt;title&gt;Peppers&lt;/title&gt;
 * <strong>&lt;base href="http://www.somedomain.com/directory/" /&gt;</strong>
 * &lt;/head&gt;
 * &lt;body&gt;
 * &lt;p&gt;&lt;a href="someplace.html"&gt;This&lt;/a&gt; will actually link to
 * http://www.somedomain.com/directory/someplace.html.&lt;/p&gt;
 * &lt;div&gt;&lt;img src="someimage.jpg" alt="Some image" /&gt;&lt;/div&gt;
 * &lt;p&gt; The location of the above image will be actually be
 * http://www.somedomain.com/directory/someimage.jpg.&lt;/p&gt;
 * &lt;/body&gt;
 * </code></pre>
 *
 * @see A
 * @see Img
 * @author sergio.valdez
 */
public class Base extends Tag{

    /**
     * is used to specify the location on the base URI.
     */
    private String href;

    public Base(String href) {
        this.href = href;
    }

    /**
     * is used to specify the location on the base URI.
     * @return the href
     */
    public String getHref() {
        return href;
    }

    /**
     * is used to specify the location on the base URI.
     * @param href the href to set
     */
    public void setHref(String href) {
        this.href = href;
    }



}
